<?php
include ("./miss.class.php");

if (isset($_GET['state']) && !isset($_GET['custban']) || isset($_GET['state']) &&
    $_GET['custban'] == '200') {
    $c_set = new missing();
    //Standard Banner 200x300 change state to whatever you want or use the ?state=AR in the URL 
    $c_set->state = $_GET['state'];
    $c_set->buildimg_random_bystate();
} elseif ($_GET['custban'] == '468' && isset($_GET['state'])) {
    $c_set = new missing();
    //Banner 468x60
    $c_set->state = $_GET['state'];
    $c_set->buildimg_random_bystate_468x60();
} elseif ($_GET['custban'] == '728' && isset($_GET['state'])) {
    $c_set = new missing();
    //Banner 728x90
    $c_set->state = $_GET['state'];
    $c_set->buildimg_random_bystate_728x90();
}  else {
    $c_set = new missing();
    //Banner 200x300 Random from US Feed
    $c_set->buildimg_random();
}
?>